<?php 
define("ROOT", "../../");
define("CONFIG", "../../Config/");
$file = parse_ini_file(CONFIG."db.ini");

include_once ROOT.'Packages/DAO/Gallery.php';
include_once ROOT.'Packages/Models/Gallery.php';
include_once ROOT.'Packages/Models/Picture.php';
include_once ROOT.'Packages/Framework/MysqlDatabase.php';
include_once ROOT.'Packages/Framework/Logger.php';

\Framework\Logger::init();

$pic = new \Models\Picture();
$pic->setId(2);
$pic->setGalleryId(1);
$pic->setSource("includes/images/graffiti.jpg");
$pic->setDescription("Basti an einer Grafitti Mauer!!");
$pic->save();


$gallery = new \Models\Gallery();
echo "<pre>";
$gallery->loadByName("Test");
var_dump($gallery);
echo "</pre>";

?>